package com.lee.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zfl_a
 * @date 2020/3/29
 * @project sso-jwt
 */
@RestController
public class Client1Controller {

    /**
     * 获取用户认证信息
     * @param user
     * @return
     */
    @GetMapping("/")
    public Authentication getUser(Authentication user){
        return user ;
    }
}
